<%@ page isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style>
        .div1 {
            text-align: center;
        }
    </style>

    <script>
        $(function () {
            $("li").hover(function () {
                $(this).prop("class", "active");
            });

            $("li").mouseleave(function () {
                $(this).prop("class", "");
            })

        })
    </script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#example-navbar-collapse">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">学生管理</a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="${pageContext.request.contextPath}/add.jsp">添加学生</a></li>
                <li><a href="${pageContext.request.contextPath}/student/queryAll">查询所有</a></li>
            </ul>
        </div>
    </div>
</nav>


<c:if test="${not empty msg}">
    <div class="alert alert-success div1">${msg}</div>
</c:if>
<img src="a.jpg">
</body>
</html>
